package com.up.vms.infrastructure.mvc;

import lombok.Data;


/**
 * Service层返回数据的统一构造体
 * @author Andy
 */
@Data
public class GeneRespDTO<T> {
    private RespCode respCode;

    private T data;

    public GeneRespDTO() {
        this(null, null);
    }

    public GeneRespDTO(RespCode respCode) {
        this(respCode, null);
    }

    public GeneRespDTO(RespCode respCode, T data){
        this.respCode = respCode;
        this.data = data;
    }

}
